package com.fs.m.server.domain;

import com.fs.m.server.util.MapUtil;

import java.util.Map;

/**
 * 客户端信息
 *
 * User: zhuguoyin
 * Date: 13-10-7
 * Time: 下午1:25
 * To change this template use File | Settings | File Templates.
 */
public class Client {

    private String type;

    private String uuid;

    private String osVersion;

    private String clientVersion;

    private String screen;

    private String market;

    public void fromMap(Map map) {
        this.type = MapUtil.getString(map, "type");
        this.uuid = MapUtil.getString(map, "uuid");
        this.osVersion = MapUtil.getString(map, "osVersion");
        this.clientVersion = MapUtil.getString(map, "clientVersion");
        this.screen = MapUtil.getString(map, "screen");
        this.market = MapUtil.getString(map, "market");
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getScreen() {
        return screen;
    }

    public void setScreen(String screen) {
        this.screen = screen;
    }

    public String getMarket() {
        return market;
    }

    public void setMarket(String market) {
        this.market = market;
    }
}
